package pl.edu.agh.mwo.ui.action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;

public class ExitAction extends AbstractAction {

	private static final long serialVersionUID = -2751445526082255127L;

	public ExitAction() {
		putValue(Action.NAME, "Exit");
		putValue(Action.SHORT_DESCRIPTION, "Exit Application");
		putValue(Action.MNEMONIC_KEY, new Integer('x'));
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		System.exit(0);

	}

}
